package com.lovegu.basic;

/**
 * @author 老顾
 * @title: SignTest
 * @projectName java-restudy
 * @email: 1437594522@qq.com
 * @date 2022/9/20 15:09
 */
public class SignTest {
    public static void main(String[] args) {
        int i1 = 10;
        int i2 = 20;
        int i = i1++;
        System.out.print("i="+i);
        System.out.println("i1="+i1);
        i = ++i1;
        System.out.print("i="+i);
        System.out.println("i1="+i1);
        i = i2--;
        System.out.print("i="+i);
        System.out.println("i2="+i2);
        i = --i2;
        System.out.print("i="+i);
        System.out.println("i2="+i2);
    }
}
